const state = {
    nowType: {},
    ID: ""
};
const getters = {
    getID: state => {
        return state.ID;
    },
    getMachine: state => {
        return state.nowType;
    },
};
const mutations = {
    setIn(state, info) {
        // 存储信息
        state.nowType = info;
        console.log(info, "vuex")
    },
    setInID(state, ID) {
        // 修改底下导航栏是否显示
        state.ID = ID;
        console.log(state.ID)
    }
};
const actions = {
    setInNowType(context, info) {
        context.commit('setIn', info)
    },
    // 设置充电桩里面插头的编号
    setID(context, ID) {
        context.commit('setInID', ID)
    }
};
export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}